﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ValidationFramework.Web.MVC
{
	/// <summary>
	/// Read only class which represents a rule's configuration info.
	/// </summary>
	public class RuleInfo
	{
		public string MemberName{ get; internal set; }
		public Rule Rule { get; internal set; }

		/// <summary>
		/// Initializes a new instance of the RuleInfo class.
		/// </summary>
		public RuleInfo(string memberName, Rule rule)
		{
			MemberName = memberName;
			Rule = rule;
		}

		/// <summary>
		/// For testing
		/// </summary>
		internal RuleInfo()
		{
		}
	}

}
